import { init, h, thunk } from "snabbdom";
console.log(init, h, thunk);
let patch = init([]);
let vnode = h("div#app", [
  h("h1", "TOP 2 Movie"),
  h("p", "Sort by: Rank Title Description"),
  h("table#rankTable", [
    h("tr", [h("th", "Rank"), h("th", "Name"), h("th", "Description")]),
    h("tr", [h("td", "1"), h("td", "葫芦娃"), h("td", "救爷爷")]),
    h("tr", [h("td", "2"), h("td", "JOJO"), h("td", "我不做人了!")]),
  ]),
]);
let app = document.querySelector("#app");
let oldVnode = patch(app, vnode);
patch(oldVnode, vnode);
